package com.kadron.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.kadron.base.KTBase;
import com.kadron.datamodel.KModel;

@Entity
@Table(name = "k_embed")
public class Embed extends KTBase implements Serializable,KModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3186773627666466751L;
	
	protected String url="";
	protected String type="";
	protected String width="";
	protected String height="";
	protected boolean active;

	public Embed() {
		super();
	}

	@Column(name = "url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "width")
	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	@Column(name = "height")
	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	@Column(name = "type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "active")
	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Embed other = (Embed) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
